<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title></title>
    </head>
    <body>
        <ul id="ul">
            <li>杰瑞教育</li>
            <li>Web前端培训</li>
            <li>JavaEE培训</li>
            <li>PHP培训</li>
        </ul>        
        <script type="text/javascript">
            var ul=document.getElementById("ul");
            ul.onclick = function(e){
                var evn = e||window.event;
                var target = event.target||event.srcElement;
                if(target.nodeName.toLowerCase()=="li"){
                    console.log(target.innerText);
                }
            }
</script>
    </body>
</html>